<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>书籍新增界面</title>
</head>
<body>
    <s:form action="newbook" method="POST" enctype="multipart/form-data">
        <s:textfield name="bisbn" label="ISBN"/>
        <s:textfield name="bname" label="书名"/>
        <s:textfield name="bauthor" label="作者"/>
        <s:textfield name="bpress" label="出版社"/>
        <s:textfield name="bprice" label="价格"/>
        <s:textfield name="bcount" label="库存"/>
        <s:file name="upload" label="图书图片"/><hr>
        <s:submit type="input" value="新增"/>
        <s:reset value="重置"/>
    </s:form>
    <hr>
    文件:===${upload}<hr>
    文件类型:===${uploadContentType}<hr>
    文件名称:===${uploadFileName}<hr>
    文件保存路径:===${uploadSavePath}<hr>
    文件图片预览:===<img src="/bookPic/${uploadFileName}" alt="图片加载失败" width="20%" height="10%"><hr>
    <hr>
</body>
</html>